Don't clone remote repos, use fetch instead
authorAlex Crichton <alex@alexcrichton.com>
Thu, 11 Sep 2014 21:30:13 +0000 (14:30 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Fri, 12 Sep 2014 02:05:14 +0000 (19:05 -0700)
commit6742dde83b5ec9e33cc45a45db599781aecdce3f
tree7eed67878a8f43d465d0bb0d6bdb6337716269b4
parentf840823e39bd864688cdf53e61f4ab6cfc74c882
Don't clone remote repos, use fetch instead

When cloning a remote repository, the default behavior of libgit2 is to only
update the local ref that's actually checked out, when we actually would prefer
to update all refs of the remote repo. This removes a call to clone() to a
init_bare() + fetch() which should update all refs accordingly

Closes #565
src/cargo/sources/git/utils.rs
tests/test_cargo_compile_git_deps.rs